home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
program
/
186
/
how2mrge
/
how2merg.doc
< prev
next >
Wrap
Text File
|
1988-05-18
|
2KB
|
38 lines
How To Merge Multiple Pic_clip .CL1 Files into a Single Binary
File:
I do a lot of programming involving little clips of Degas
pictures, using the picture-clipping utility PIC_CLIP by Jim
Luczak. Sometimes I have as many as 40 or 50 little pictures to
load off disk. Loading pictures takes time, and loading multiple
pictures takes even more time...The opening and closing of a small
file takes the most time--not the actual reading of the data. In
order to minimize loading time in my programs, I asked Jim for
some help in creating a single binary file from multiple .CL1
files. He generously provided most of the significant code in
these demos.
This is a two-part demo, including two .BAS programs and utilizing
seven little picture clips created with PIC_CLIP and DEGAS. For
convenience, I used picture clips from a rather stupid program of
mine called KIDPOTATO.
To witness the merging routine, LOAD and RUN HOW2MERG.BAS. This
program will create a single file from the seven clip files
included in the .ARC. The new file will be called SMALLPOT.DAT.
Notice that each clip becomes an element in an array, and the
entire array is contained in the new data file.
Then LOAD and RUN CLIPSAMP.BAS. I'm sorry, but this program only
functions in low resolution. You can still examine the
methodology of the programming if you have a monochrome monitor,
but don't bother to RUN it...The Procedure Load_littlepics loads
each of the elements in the array from the new data file. Then
the program will display each of the items (actually, in reverse
order) with a brief pause between each clip placement.
Hope this helps! Enjoy your clipping!
D.A. Brumleve